<? require("../header.inc"); ?>
<? require_once('iam_opml_parser.php');?>
<HTML>
<BODY>

<?
$OPMLFile=$_GET['TheFile'];
if ($OPMLFile == "") $OPMLFile = "./maints.opml";

$parser = new IAM_OPML_Parser();
$info = $parser->getFeeds($OPMLFile);

$count = count($info);
for ($j = 0; $j < $count; $j++) {
$I = $info[$j];
$url = $I['urls'];
$name = $I['names'];

$G = strpos ($url,".opml");
if ($G !== false)
{
echo "<P><A HREF=\"troubleshooter.php?TheFile=$url\">$name</A></P>";
}
else
{
echo "<P><A TARGET=\"TSMain\" HREF=\"$url\">$name</A></P>";
//ask did this answer your question ?
}

}
?>
</BODY>
</HTML>
